package com.lvliucun.validate.exception;

/**
 * @Description 错误码定义
 * @Author zhuojiajin
 * @Date 2020/8/14
 **/
public enum CustomerErrorCodeEnum {

    PARAM_ERROR(400, "参数异常,请检查入参后再次调用！"),
    PARAM_CHECKER_ILLEGAL(4100,"参数校验器使用错误！"),
    PARAM_NOT_NULL(4001,"{0}不能为空！"),
    PARAM_ILLEGAL(4002,"{0}非法！"),
    PARAM_NOT_ALL_NULL(4003,"{0}不能全部都为空！"),
    ;
    private static final long serialVersionUID = 6958499248468627021L;
    /** 错误码 */
    private final Integer code;
    /** 描述 */
    private final String description;

    /**
     * @param code 错误码
     * @param description 描述
     */
    private CustomerErrorCodeEnum(final Integer code, final String description) {
        this.code = code;
        this.description = description;
    }

    public Integer getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }


}
